var o1 = {name:1};
var o2 = {name:1};
var o3 = {name:'1'};
alert(angular.equals(o1,o2));
alert(angular.equals(o1,o3));